package com.gorilla.imitateStruts.action.impl;
import javax.servlet.http.*;



import com.gorilla.imitateStruts.action.Action;
import com.gorilla.imitateStruts.service.UserManagerService;

public class AddUserAction implements Action {

	@Override
	public String execute(HttpServletRequest request,HttpServletResponse response) throws Exception {
		String username=request.getParameter("username");
		
		UserManagerService userManager=new UserManagerService();
		userManager.addUser(username);
		return "/addSuccess.jsp";
	}

}
